package com.attendance.www.hr.service;

import java.util.List;

import com.attendance.www.hr.beans.RoleBean;
import com.attendance.www.hr.beans.RolePageBean;
import com.attendance.www.hr.entitys.RoleDepartment;

public interface IRoleService {

	/**
	 * 删除岗位验证，没有被分配员工可以删
	 * @param roleId
	 * @return
	 */
	public boolean getVerifyDelete(String roleId);
	
	/**
	 * 新增岗位
	 * @param roleBean
	 * @return
	 */
	public boolean saveRole(RoleBean roleBean);
	
	/**
	 * 删除岗位
	 * @param roleId
	 * @return
	 */
	public boolean deleteRole(String roleId);
	
	/**
	 * 修改岗位信息
	 * @param roleBean
	 * @return
	 */
	public boolean updateRole(RoleBean roleBean);
	
	/**
	 * 查询岗位
	 * @param startNum
	 * @param pageCount
	 * @return
	 */
	public RolePageBean getRoleList(RoleBean roleBean, Integer startNum, Integer pageCount);
	
	/**
	 * 查询某人的岗位集合
	 * @param employeeId
	 * @return
	 */
	public List<RoleBean> getRoleListByEmployeeId(Integer employeeId);

	List<RoleDepartment> getDepartmentRoidByRoidId(Integer departmentId);
	
	/**
	 * 岗位信息导出
	 * @param role
	 * @return
	 */
	public String getRoleExport();
	

	
	
}
